package com.erlang4j.api.exceptions;

import java.util.Set;

import com.erlang4j.internal.exceptions.Erlang4jException;
import com.erlang4j.internal.exceptions.Erlang4jExceptionConstants;

/** This is called if a message handler tries to change tstate to a state that doesnt exist. */
public class Erlang4jCannotChangeStateToIllegalStateException extends Erlang4jException {

	public Erlang4jCannotChangeStateToIllegalStateException(String stateName, Set<String> legalNames) {
		super(Erlang4jExceptionConstants.cannotChangeStateToIllegalState, stateName, legalNames);
	}

}
